package pms.Biz;

import pms.entity.Medicine;
import pms.entity.Order;
import pms.entity.Supplier;

import java.time.LocalDate;
import java.util.List;

public interface OrderBiz {
    boolean appendMedicineOrder(Supplier supplier, LocalDate order_date, Integer order_number, Integer order_amount, Integer order_status);

    Supplier querySupplierInformationById(Integer supplier_id);

    boolean updateSupplierInformationById(Integer supplier_id
            ,String supplier_name
            ,Integer supplier_qct
            ,String supplier_tel
            ,String supplier_status
            ,Integer supplier_mainMedicine
            ,Integer supplier_price);

    List<Medicine> queryMedicineOrder();

    boolean shortageOfMedicineAlertBYID(Integer medicine_id);

    Supplier electTheBestSupplierByMedicineId(Integer medicine_id);

    boolean deleteQuestionSupplierById(Integer supplier_id);
}
